/*********************************************************************\
*
*                  (c) lkc
*                  All Rights Reserved. lkc Confidential
*
\*********************************************************************/
/*********************************************************************\
*   Title                      :
*
*   Module Description         :
*
*   Author                     : lkc
*
*   Created                    : 2018-8-4
*
\*********************************************************************/

#ifndef COMMBASEQT_H
#define COMMBASEQT_H

#include <QObject>
#include "CommBase.h"

class CommBaseQt : public QObject, public CommBase
{
    Q_OBJECT
public:
    CommBaseQt(QObject* parent = nullptr);
    virtual ~CommBaseQt() {printf("CommBaseQt derived() is called!\n");}//对于存在虚函数的基类，一般要将基类析构函数定义为虚函数，从而合理地释放资源
    virtual bool Open() = 0;
    virtual void Close() = 0;
    int ReadAndParse() override;
};

#endif // COMMBASEQT_H

/********************************************************************\
 *
 * REVISION RECORDS
 *
\*********************************************************************/
/*********************************************************************/
/*
 *
 *
 *
\*********************************************************************/
/*------------------------------The End------------------------------*/
